package com.sjgl.esdn.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UCBlogMapper {


    /**
     * 选择阅读量通过文件id
     *
     * @param fileId 文件标识
     * @return {@link Long}
     */
    Long selectBrowseNumByFileId(@Param("fileId") Long fileId);

    /**
     * 选择点赞量通过文件id
     *
     * @param fileId 文件标识
     * @return {@link Long}
     */
    Long selectLikeNumByFileId(@Param("fileId") Long fileId);

    /**
     * 选择评论量按文件id
     *
     * @param fileId 文件标识
     * @return {@link Long}
     */
    Long selectCommentNumByFileId(@Param("fileId") Long fileId);

    Long selectBoxNumByFileId(@Param("fileId") Long fileId);

    Long selectIsBlogByFileId(@Param("fileId") Long fileId);

    String selectFileIntroByFileId(@Param("fileId") Long fileId);
}
